<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.selectWidth2 {
	width: 190px;
}

.selectWidth1 {
	width: 298px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="basicInfo" cellspacing="1">
	<tr>
		<td colspan="6" class="t_bar">&nbsp;项目基本信息</td>
	</tr>
	<tr>
		<td nowrap width="100px" align="right"><span class="color_red">*</span>园区名称：</td>
		<td nowrap colspan="5"><input id="zh_title"
			name="proposal/zh_title" label="项目名称" type="text"
			class="input_css required maxlength:50" style="width: 715px;"
			maxlength="50"
			value="<x:out select="$xmlData/data/proposal/zh_title" />" /></td>
	</tr>
	<tr>
		<td nowrap align="right" width="100px"><span class="color_red">*</span>填报人：</td>
		<td nowrap colspan="2"><input name="proposal/tbr_cname"
			label="填报人名称" type="text" class="input_css required"
			 maxlength="50"
			value="<x:out select="$xmlData/data/proposal/tbr_cname" />" /></td>
		<td nowrap align="right" ><span class="color_red">*</span>手机：</td>
		<td nowrap colspan="2"><input name="proposal/tbr_tel" label="填报人手机" type="text"
			required class="input_css required mobile"
			style="width: 140px;" maxlength="11"
			value="<x:out select="$xmlData/data/proposal/tbr_tel" />" /></td>

	</tr>
	<tr>
		<td nowrap align="right" width="100px"><span class="color_red">*</span>申报日期：</td>
		<td nowrap colspan="5"><c:set var="submit_date">
				<x:out select="$xmlData/data/proposal/submit_date" />
			</c:set> <cpt:date id="submit_date" name="proposal/submit_date"
				value="${submit_date}" className="required date" label="申报日期"></cpt:date>&nbsp;
		</td>
	</tr>
	

</table>
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="incubator" cellspacing="1">
	<tr>
		<td colspan="6" class="t_bar">&nbsp;孵化器基本情况</td>
	</tr>
	<tr>
		<td nowrap align="right" width="100px"><span class="color_red">*</span>孵化器名称：</td>
		<td nowrap colspan="3"><input name="incubator/cname"
			label="孵化器名称" type="text" class="input_css required"
			style="width: 84.5%;" maxlength="50"
			value="<x:out select="$xmlData/data/incubator/cname" />" /></td>
		<td nowrap align="right" width="100px"><span class="color_red">*</span>组建期：</td>
		<td nowrap><input name="incubator/date" label="组建期" type="text"
			required class="input_css required "
			style="width: 140px;" maxlength="50"
			value="<x:out select="$xmlData/data/incubator/date" />" /></td>

	</tr>
	<tr>
		<td nowrap align="right" width="100px"><span class="color_red">*</span>地址：</td>
		<td nowrap><input name="incubator/address" label="地址"
			type="text" class="input_css required" style="width: 140px;"
			maxlength="50"
			value="<x:out select="$xmlData/data/incubator/address" />" /></td>
		<td nowrap align="right" width="100px"><span class="color_red">*</span>场地面积：</td>
		<td nowrap><input name="incubator/cd_area" label="场地面积" type="text"
			required class="input_css required"
			style="width: 140px; text-align: right"
			onfocus="InitInput.setNumber(this,7,0,0)"
			value="<x:out select="$xmlData/data/incubator/cd_area" />" />平方米</td>
		<td nowrap align="right" width="100px"><span class="color_red">*</span>在孵企业数：</td>
		<td nowrap><input name="incubator/sum" label="在孵企业数" type="text"
			required class="input_css required"
			style="width: 140px; text-align: right"
			onfocus="InitInput.setNumber(this,7,0,0)"
			value="<x:out select="$xmlData/data/incubator/sum" />" />家</td>
	</tr>
	<tr>
		<td colspan="6" class="t_bar">&nbsp;<span class="color_red">*</span>主要服务内容（限500字）
		</td>
	</tr>
	<tr>
		<td colspan="6"><textarea rows='10' cols='150' label="主要服务内容" name="incubator/brief" class="required textarea maxlength:500"><x:out select="$xmlData/data/incubator/brief" escapeXml="true" /></textarea>&nbsp;
		                <input type="hidden" name="incubator/brief_hidden" value=""/>
		</td>
	</tr>
</table>
<br>
<div class="t_bar">
	<span class="color_red">*</span>孵化器人员配备情况（单位：人）
</div>
<table border="0" cellspacing="0" cellpadding="0" class="t_css table01">
	<thead>
		<tr>
			<td align="center" nowrap>总数</td>
			<td colspan="5" align="left">&nbsp;&nbsp;<input name="incubator/people_count_total" id="people_count_total"
				style="width: 140px; text-align: right" class="input_css gray required" disabled label="孵化器人员配备情况"
				onfocus="InitInput.setNumber(this,7,0,0)" 
				value="<x:out select="$xmlData/data/incubator/people_count_total" />" /></td>
		</tr>
		<tr>
			<th align="center" nowrap>&nbsp;</th>
			<th align="center" nowrap>博士或高级职称</th>
			<th align="center" nowrap>硕士或中级职称</th>
			<th align="center" nowrap>本科</th>
			<th align="center" nowrap>大专</th>
			<th align="center" nowrap>其他</th>
		</tr>
	</thead>
	<tbody id="tab">

		<tr>
			<td align="center">专业人员</td>
			<td align="center"><input name="incubator/people_zy_bs" id="people_zy_bs"
				style="width: 140px; text-align: right" class="input_css "
				onfocus="InitInput.setNumber(this,7,0,0)"
			    onchange="countNum('people_','zy_bs,gl_bs,fz_bs','total_bs');countPeopleTotal();"
				value="<x:out select="$xmlData/data/incubator/people_zy_bs" />" /></td>
			<td align="center"><input name="incubator/people_zy_ss" id="people_zy_ss"
				style="width: 140px; text-align: right" class="input_css "
				onfocus="InitInput.setNumber(this,7,0,0)"
				onchange="countNum('people_','zy_ss,gl_ss,fz_ss','total_ss');countPeopleTotal();"
				value="<x:out select="$xmlData/data/incubator/people_zy_ss" />" /></td>
			<td align="center"><input name="incubator/people_zy_bk" id="people_zy_bk"
				style="width: 140px; text-align: right" class="input_css "
				onfocus="InitInput.setNumber(this,7,0,0)" 
				onchange="countNum('people_','zy_bk,gl_bk,fz_bk','total_bk');countPeopleTotal();"
				value="<x:out select="$xmlData/data/incubator/people_zy_bk" />" /></td>
			<td align="center"><input name="incubator/people_zy_dz" id="people_zy_dz"
				style="width: 140px; text-align: right" class="input_css "
				onfocus="InitInput.setNumber(this,7,0,0)"
				onchange="countNum('people_','zy_dz,gl_dz,fz_dz','total_dz');countPeopleTotal();"
				value="<x:out select="$xmlData/data/incubator/people_zy_dz" />" /></td>
			<td align="center"><input name="incubator/people_zy_qt" id="people_zy_qt"
				style="width: 140px; text-align: right" class="input_css "
				onfocus="InitInput.setNumber(this,7,0,0)"
				onchange="countNum('people_','zy_qt,gl_qt,fz_qt','total_qt');countPeopleTotal();"
				value="<x:out select="$xmlData/data/incubator/people_zy_qt" />" /></td>
		</tr>
		<tr>
			<td align="center">管理人员</td>
			<td align="center"><input name="incubator/people_gl_bs" id="people_gl_bs"
				style="width: 140px; text-align: right" class="input_css "
				onfocus="InitInput.setNumber(this,7,0,0)"
				onchange="countNum('people_','zy_bs,gl_bs,fz_bs','total_bs');countPeopleTotal();"
				value="<x:out select="$xmlData/data/incubator/people_gl_bs" />" /></td>
			<td align="center"><input name="incubator/people_gl_ss" id="people_gl_ss"
				style="width: 140px; text-align: right" class="input_css "
				onfocus="InitInput.setNumber(this,7,0,0)"
			    onchange="countNum('people_','zy_ss,gl_ss,fz_ss','total_ss');countPeopleTotal();"
				value="<x:out select="$xmlData/data/incubator/people_gl_ss" />" /></td>
			<td align="center"><input name="incubator/people_gl_bk" id="people_gl_bk"
				style="width: 140px; text-align: right" class="input_css "
				onfocus="InitInput.setNumber(this,7,0,0)" 
				onchange="countNum('people_','zy_bk,gl_bk,fz_bk','total_bk');countPeopleTotal();"
				value="<x:out select="$xmlData/data/incubator/people_gl_bk" />" /></td>
			<td align="center"><input name="incubator/people_gl_dz" id="people_gl_dz"
				style="width: 140px; text-align: right" class="input_css "
				onfocus="InitInput.setNumber(this,7,0,0)"
				onchange="countNum('people_','zy_dz,gl_dz,fz_dz','total_dz');countPeopleTotal();"
				value="<x:out select="$xmlData/data/incubator/people_gl_dz" />" /></td>
			<td align="center"><input name="incubator/people_gl_qt" id="people_gl_qt"
				style="width: 140px; text-align: right" class="input_css  "
				onfocus="InitInput.setNumber(this,7,0,0)"
				onchange="countNum('people_','zy_qt,gl_qt,fz_qt','total_qt');countPeopleTotal();"
				value="<x:out select="$xmlData/data/incubator/people_gl_qt" />" /></td>
		</tr>
		<tr>
			<td align="center">辅助人员</td>
			<td align="center"><input name="incubator/people_fz_bs" id="people_fz_bs"
				style="width: 140px; text-align: right" class="input_css "
				onfocus="InitInput.setNumber(this,7,0,0)"
				onchange="countNum('people_','zy_bs,gl_bs,fz_bs','total_bs');countPeopleTotal();"
				value="<x:out select="$xmlData/data/incubator/people_fz_bs" />" /></td>
			<td align="center"><input name="incubator/people_fz_ss" id="people_fz_ss"
				style="width: 140px; text-align: right" class="input_css "
				onfocus="InitInput.setNumber(this,7,0,0)"
				onchange="countNum('people_','zy_ss,gl_ss,fz_ss','total_ss');countPeopleTotal();"
				value="<x:out select="$xmlData/data/incubator/people_fz_ss" />" /></td>
			<td align="center"><input name="incubator/people_fz_bk" id="people_fz_bk"
				style="width: 140px; text-align: right" class="input_css "
				onfocus="InitInput.setNumber(this,7,0,0)"
				onchange="countNum('people_','zy_bk,gl_bk,fz_bk','total_bk');countPeopleTotal();"
				value="<x:out select="$xmlData/data/incubator/people_fz_bk" />" /></td>
			<td align="center"><input name="incubator/people_fz_dz" id="people_fz_dz"
				style="width: 140px; text-align: right" class="input_css "
				onfocus="InitInput.setNumber(this,7,0,0)"
				onchange="countNum('people_','zy_dz,gl_dz,fz_dz','total_dz');countPeopleTotal();"
				value="<x:out select="$xmlData/data/incubator/people_fz_dz" />" /></td>
			<td align="center"><input name="incubator/people_fz_qt" id="people_fz_qt"
				style="width: 140px; text-align: right" class="input_css "
				onfocus="InitInput.setNumber(this,7,0,0)"
				onchange="countNum('people_','zy_qt,gl_qt,fz_qt','total_qt');countPeopleTotal();"
				value="<x:out select="$xmlData/data/incubator/people_fz_qt" />" /></td>
		</tr>
		<tr>
			<td align="center">合计</td>
			<td align="center"><input name="incubator/people_total_bs" id="people_total_bs"
				style="width: 140px; text-align: right" class="input_css  gray" disabled
				onfocus="InitInput.setNumber(this,7,0,0)"
				value="<x:out select="$xmlData/data/incubator/people_total_bs" />" /></td>
			<td align="center"><input name="incubator/people_total_ss" id="people_total_ss"
				style="width: 140px; text-align: right" class="input_css  gray" disabled
				onfocus="InitInput.setNumber(this,7,0,0)"
				value="<x:out select="$xmlData/data/incubator/people_total_ss" />" /></td>
			<td align="center"><input name="incubator/people_total_bk" id="people_total_bk"
				style="width: 140px; text-align: right" class="input_css  gray" disabled
				onfocus="InitInput.setNumber(this,7,0,0)"
				value="<x:out select="$xmlData/data/incubator/people_total_bk" />" /></td>
			<td align="center"><input name="incubator/people_total_dz" id="people_total_dz"
				style="width: 140px; text-align: right" class="input_css  gray" disabled
				onfocus="InitInput.setNumber(this,7,0,0)"
				value="<x:out select="$xmlData/data/incubator/people_total_dz" />" /></td>
			<td align="center"><input name="incubator/people_total_qt" id="people_total_qt"
				style="width: 140px; text-align: right" class="input_css  gray" disabled
				onfocus="InitInput.setNumber(this,7,0,0)"
				value="<x:out select="$xmlData/data/incubator/people_total_qt" />" /></td>
		</tr>
		<tr>
			<td align="center">所占比例(%)</td>
			<td align="center"><input name="incubator/people_precent_bs" id="people_precent_bs"
				style="width: 140px; text-align: right" class="input_css  gray" disabled
				onfocus="InitInput.setNumber(this,7,0,0)"
				value="<x:out select="$xmlData/data/incubator/people_precent_bs" />" /></td>
			<td align="center"><input name="incubator/people_precent_ss" id="people_precent_ss"
				style="width: 140px; text-align: right" class="input_css  gray" disabled
				onfocus="InitInput.setNumber(this,7,0,0)"
				value="<x:out select="$xmlData/data/incubator/people_precent_ss" />" /></td>
			<td align="center"><input name="incubator/people_precent_bk" id="people_precent_bk"
				style="width: 140px; text-align: right" class="input_css  gray" disabled
				onfocus="InitInput.setNumber(this,7,0,0)"
				value="<x:out select="$xmlData/data/incubator/people_precent_bk" />" /></td>
			<td align="center"><input name="incubator/people_precent_dz" id="people_precent_dz"
				style="width: 140px; text-align: right" class="input_css  gray" disabled
				onfocus="InitInput.setNumber(this,7,0,0)"
				value="<x:out select="$xmlData/data/incubator/people_precent_dz" />" /></td>
			<td align="center"><input name="incubator/people_precent_qt" id="people_precent_qt"
				style="width: 140px; text-align: right" class="input_css  gray" disabled
				onfocus="InitInput.setNumber(this,7,0,0)"
				value="<x:out select="$xmlData/data/incubator/people_precent_qt" />" /></td>
		</tr>

	</tbody>
</table>
<script>
function countPeopleTotal(){
	var people_total_bs=$("#people_total_bs").val();
	var people_total_ss=$("#people_total_ss").val();
	var people_total_bk=$("#people_total_bk").val();
	var people_total_dz=$("#people_total_dz").val();
	var people_total_qt=$("#people_total_qt").val();
	if (!$.isNumeric(people_total_bs))
		people_total_bs = "0";
	if (!$.isNumeric(people_total_ss))
		people_total_ss = "0";
	if (!$.isNumeric(people_total_bk))
		people_total_bk = "0";
	if (!$.isNumeric(people_total_dz))
		people_total_dz = "0";
	if (!$.isNumeric(people_total_qt))
		people_total_qt = "0";
	
	var count =parseInt(people_total_bs,10)+parseInt(people_total_ss,10)+parseInt(people_total_bk,10)+parseInt(people_total_dz,10)+parseInt(people_total_qt,10);
	var people_precent_bs=formatNumber((parseInt(people_total_bs,10)*100/parseInt(count,10)).toString(), 9, 4, 2);
	var people_precent_ss=formatNumber((parseInt(people_total_ss,10)*100/parseInt(count,10)).toString(), 9, 4, 2);
	var people_precent_bk=formatNumber((parseInt(people_total_bk,10)*100/parseInt(count,10)).toString(), 9, 4, 2);
	var people_precent_dz=formatNumber((parseInt(people_total_dz,10)*100/parseInt(count,10)).toString(), 9, 4, 2);
	var people_precent_qt=formatNumber((parseInt(people_total_qt,10)*100/parseInt(count,10)).toString(), 9, 4, 2);
	if(!$.isNumeric(count)||count==0){
		$("#people_count_total").val("");
		$("#people_precent_bs").val("0.00");
		$("#people_precent_ss").val("0.00");
		$("#people_precent_bk").val("0.00");
		$("#people_precent_dz").val("0.00");
		$("#people_precent_qt").val("0.00");	
	}
	else{
	$("#people_count_total").val(count);
	$("#people_precent_bs").val(people_precent_bs);
	$("#people_precent_ss").val(people_precent_ss);
	$("#people_precent_bk").val(people_precent_bk);
	$("#people_precent_dz").val(people_precent_dz);
	$("#people_precent_qt").val(people_precent_qt);
	}
	
}
</script>
